<%--
  Created by IntelliJ IDEA.
  User: 朱基伟
  Date: 2021/6/7
  Time: 20:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>头部内容</title>
</head>
<body>
    
    <%
        String basePath = request.getScheme() //得到协议名称
        + "://"
        + request.getServerName()             //得到服务器名字
        + ":"
        + request.getServerPort()             //得到端口号
        + request.getContextPath()            //得到工程路径
        + "/";
        pageContext.setAttribute("basePath",basePath);
    %>
    <!--    写base标签，永远固定相对路径跳转的结果-->
    <base href="<%=basePath%>">

    <link type="text/css" rel="stylesheet" href="static/css/style.css">
    <script src="static/js/jquery-3.6.0.min.js"></script>

</body>
</html>
